import requests

from common.get_header import get_header

# 查询员工
class Query_person_api(object):
    @classmethod
    def Query_person(cls,data):
        heaer = get_header()
        resp=requests.post(url="https://testapi.newdjk.cn/platformcore/Org/GetOrgPatientByPage",
                      headers={"Content-Type": "application/json", "Authorization": heaer},
                      json=data)
        return resp

if __name__ == '__main__':
    data={"PageIndex": 1, "PageSize": 10, "OrderBy": "", "Type": 0, "ParentOrgId": 369,
                            "OrgZoneId": 0, "OrgId": 369, "PatientName": "", "Mobile": "18390843425", "Start": None,
                            "End": None, "LastRegisterTimeStart": None, "LastRegisterTimeEnd": None, "StartAge": None,
                            "EndAge": None, "RegisterNumMin": None, "RegisterNumMax": None, "IsAttentWeChat": None,
                            "TagLibraryItemIds": []}
    resp=Query_person_api.Query_person(data)
    print(resp.json())